import Vue from "vue";
import Router from "vue-router";
import store from "../store";
import excessTime from "../store/dashboard/excessTime";
import moment from "moment";
import {
	getUserData,
	DeleteDataBase
} from "@/utils/IndexedDB.js";
import {
	clearCache
} from "@/utils/clearCache.js";
import {
	Message
} from "element-ui";
import {
	submitLogin,
	Login
} from "@/api/index";
// import { Login } from "@/utils/login.js";
import {
	dynamic_routes
} from "@/router/dynamic_routes.js";
Vue.use(Router);

//解决两次路由切换报错
const routerPush = Router.prototype.push;
Router.prototype.push = function push(location) {
	return routerPush.call(this, location).catch((error) => error);
};

const Static_routes = 
[
	{
		path: "/",
		redirect: "/dashBoard/MainPage",
	},
	/* 目录 */

	/* 登录 */
	{
		path: "/login.jsp",
		name: "Login",
		component: (resolve) => require(["../components/page/Login.vue"], resolve),
		meta: {
			menu: "login",
			title: "登录",
		},
	},
	{
		path: "*",
		redirect: "/404",
	},
	{
		path: "/",
		name: "home",
		component: (resolve) => require(["../components/common/Home.vue"], resolve),
		meta: {
			title: "系统",
		},
		children: [
			/* 监控中心 */
			{
				path: "/dashBoard/MainPage",
				name: "dashBoardMainPage",
				component: (resolve) =>
					require(["../components/page/dashboard/mainPage/Index.vue"], resolve),
				meta: {
					menu: "dashBoardMainPage",
					title: "监控总页",
					route: [
						"superAdmin",
						"admin",
						"Buser",
						"Suser",
						"Nuser",
						"BSuser",
						"BNuser",
						"SNuser",
						"bigUser",
						"Badmin",
						"Sadmin",
						"Nadmin",
						"BSadmin",
						"BNadmin",
						"SNadmin",
						"bigadmin",
					],
				},
			},
			/* 会话信息 */
			{
				path: "/sessionData/SessionInformation",
				name: "SessionInformation",
				component: (resolve) =>
					require([
						"../components/page/SessionData/SessionInformation.vue",
					], resolve),
				meta: {
					menu: "SessionInformation",
					title: "会话信息",
					route: [
						"superAdmin",
						"admin",
						"Buser",
						"Suser",
						"Nuser",
						"BSuser",
						"BNuser",
						"SNuser",
						"bigUser",
						"Badmin",
						"Sadmin",
						"Nadmin",
						"BSadmin",
						"BNadmin",
						"SNadmin",
						"bigadmin",
					],
				},
			},
		],
	},
];

let router = new Router({
	// routes: Static_routes,

	routes: [
		/* 重定向 */
		{
			path: "/",
			redirect: "/dashBoard/MainPage",
		},
		{
			path: "/Topological",
			redirect: "/Topological/TopologyDiagram",
		},
		{
			path: "/Topological/TopologyDiagram",
			redirect: "/Topological/TopologyDiagram/FirstPage",
		},

		// {
		//     path: '/:id',
		//     redirect: '/dashBoard/MainPage'
		// },
		/* 目录 */

		/* 登录 */
		{
			path: "/login.jsp",
			name: "Login",
			component: (resolve) =>
				require(["../components/page/Login.vue"], resolve),
			meta: {
				menu: "login",
				title: "登录",
			},
		},
		{
			path: "/pdfDownload",
			component: () => import("@/components/common/pdfDownload.vue"),
			meta: {
				menu: "pdfDownload",
				title: "下载pdf",
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
			},
		},

		{
			path: "/LargeScreen",
			component: () => import("@/components/common/LargeScreen.vue"),
			meta: {
				menu: "LargeScreen",
				title: "首页大屏",
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
			},
		},
		//一键巡检详情页
		{
			path: "/TodayExaminePage",
			name: "TodayExaminePage",
			component: (resolve) =>
				require(["../components/page/examine/TodayExaminePage"], resolve),
			meta: {
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
			},
		},
		/* 拓扑中心 */

		{
			path: "/Topological",
			name: "Topological",
			component: (resolve) =>
				require(["../components/page/topological/index.vue"], resolve),
			meta: {
				title: "拓扑中心",
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
			},
			children: [{
					path: "/Topological/TopologyDiagram",
					name: "TopologyDiagram",
					component: (resolve) =>
						require([
							"@/components/page/topological/mainPage/TopologyDiagram.vue",
						], resolve),
					meta: {
						// menu: "dashBoardMainPage",
						title: "拓扑图",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
					children: [{
							path: "/Topological/TopologyDiagram/FirstPage",
							name: "TopologyDiagramFirstPage",
							component: (resolve) =>
								require([
									"@/components/page/topological/mainPage/TopologyDiagramFirstPage.vue",
								], resolve),
							meta: {
								title: "拓扑图节点首屏",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"Suser",
									"Nuser",
									"BSuser",
									"BNuser",
									"SNuser",
									"bigUser",
									"Badmin",
									"Sadmin",
									"Nadmin",
									"BSadmin",
									"BNadmin",
									"SNadmin",
									"bigadmin",
								],
							},
						},
						{
							path: "/Topological/TopologyDiagram/TopologyDiagramView/:name/:id",
							name: "TopologyDiagramView",
							component: (resolve) =>
								require([
									"@/components/page/topological/mainPage/TopologyDiagramView.vue",
								], resolve),
							meta: {
								title: "拓扑图节点",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"Suser",
									"Nuser",
									"BSuser",
									"BNuser",
									"SNuser",
									"bigUser",
									"Badmin",
									"Sadmin",
									"Nadmin",
									"BSadmin",
									"BNadmin",
									"SNadmin",
									"bigadmin",
								],
							},
						},
					],
				},
				{
					path: "/Topological/TopologyManage",
					name: "TopologyManage",
					component: (resolve) =>
						require([
							"@/components/page/topological/mainPage/TopologyManage.vue",
						], resolve),
					meta: {
						title: "拓扑管理",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/Topological/DeviceManage",
					name: "DeviceManage",
					component: (resolve) =>
						require([
							"@/components/page/topological/mainPage/DeviceManage.vue",
						], resolve),
					meta: {
						title: "设备管理",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
			],
		},

		/* 分项监控 start*/
		{
			path: "/ItemMonitor",
			component: () => import("@/components/page/ItemMonitor/index.vue"),
			// redirect: '/ItemMonitor/DataBase/Oracle/Connect',
			meta: {
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
				title: "监控详情",
			},
			children: [{
					path: "/ItemMonitor/DataBase/Oracle",
					component: () =>
						import("@/components/page/ItemMonitor/components/Oracle.vue"),
					redirect: "/ItemMonitor/DataBase/Oracle/honstInfo",
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
						title: "Oracle",
					},
					name: "ItemMonitorDataBaseOracle",
					children: [{
							path: "/ItemMonitor/DataBase/Oracle/DbConnect",
							name: "ItemMonitorDataBaseOracleConnect",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/DbConnect.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "可用性",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin",
									"bigadmin",
								],
							},
						},

						{
							path: "/ItemMonitor/DataBase/Oracle/DBInfo",
							name: "ItemMonitorDataBaseOracleInfo",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/DbInfo.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "数据库信息",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/SQLInfo",
							name: "ItemMonitorDataBaseOracleSQLINFO",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/SQLInfo.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "SQL监控",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},

						{
							path: "/ItemMonitor/DataBase/Oracle/WaitEvent",
							name: "ItemMonitorDataBaseOracleWaitEvent",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/DbWaitEvent.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "等待事件",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/DbMemory",
							name: "ItemMonitorDataBaseOracleDbMemory",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/DbMemory.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "内存使用情况",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/Dbtime",
							name: "ItemMonitorDataBaseOracleDbtime",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/DBTime.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "DBTime",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/InvalidObject",
							name: "ItemMonitorDataBaseOracleInvalidObject",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/DbInvalidObject.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "无效对象",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/CpuAndMemory",
							name: "ItemMonitorDataBaseOracleCpuAndMemory",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/CpuAndIoLoad.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "CpuAndIo",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/CpuAndMemorys",
							name: "ItemMonitorDataBaseOracleCpuAndMemorys",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/Network/component/CpuAndIoLoading.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "CpuAndIo",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/TableSpace",
							name: "ItemMonitorDataBaseOracleTableSpace",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/DbTableSpace.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "表空间",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/Backup",
							name: "ItemMonitorDataBaseOracleBackup",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/DbBackup.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "备份",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/TimeSync",
							name: "ItemMonitorDataBaseOracleTimeSync",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/TimeSync.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "时间差",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/AsmGroup",
							name: "ItemMonitorDataBaseOracleAsmGroup",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/DbAsmGroup.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "ASM",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/DataGuard",
							name: "ItemMonitorDataBaseOracleDataGuard",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/DataGuard.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "DG同步状态",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/GoldenGate",
							name: "ItemMonitorDataBaseOracleGoldenGate",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbOracle/GoldenGate.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "GGS同步状态",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/WarningLog",
							name: "ItemMonitorDataBaseOracleWarningLog",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/WarningLog.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "告警日志",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/AlterLog",
							name: "ItemMonitorDataBaseOracleALTERLog",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/components/AlterLog.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "ALTER日志",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						{
							path: "/ItemMonitor/DataBase/Oracle/honstInfo",
							name: "ItemMonitorDataBaseOracleHostInfo",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/components/ServerInfo.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseOracle",
								title: "主机信息",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
					],
				},
				{
					path: "/ItemMonitor/DataBase/SQLServer",
					component: () =>
						import("@/components/page/ItemMonitor/components/SqlServer.vue"),
					redirect: "/ItemMonitor/DataBase/SQLServer/MainPage",
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
						title: "SQLServer",
					},
					name: "ItemMonitorDataBaseSQLServer",
					children: [
						//       {
						//     path: '/ItemMonitor/DataBase/SQLServer/DbSQLServer',
						//     name: 'ItemMonitorDataBaseSQLServerDbSQLServer',
						//     component: resolve => require(['../components/page/ItemMonitor/dataBase/dbSQLServer/DbSQLServer.vue'], resolve),
						//     meta: { menu: 'ItemMonitorDataBaseSQLServer', title: 'SQLServer', route: ['admin', 'user'] }
						// },
						{
							path: "/ItemMonitor/DataBase/SQLServer/MainPage",
							name: "ItemMonitorDataBaseSQLServerMainPage",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbSQLServer/MainPage.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseSQLServer",
								title: "首页",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},

						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DBInfo",
						//   name: "ItemMonitorDataBaseSQLServerInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "基础信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/WaitEvent",
						//   name: "ItemMonitorDataBaseSQLServerWaitEvent",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbWaitEvent.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "等待事件",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DbMemory",
						//   name: "ItemMonitorDataBaseSQLServerDbMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbMemory.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "内存使用情况",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/Dbtime",
						//   name: "ItemMonitorDataBaseSQLServerDbtime",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DBTime.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "DBTime",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/honstInfo",
						//   name: "ItemMonitorDataBaseSQLServerHostInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/components/ServerInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "主机信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/InvalidObject",
						//   name: "ItemMonitorDataBaseSQLServerInvalidObject",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbInvalidObject.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "无效对象",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/CpuAndMemory",
						//   name: "ItemMonitorDataBaseSQLServerCpuAndMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/CpuAndIoLoad.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "CpuAndIo",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },

						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/IODetail",
						//   name: "ItemMonitorDataBaseSQLServerConnect",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DbConnect.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "IO详情",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DbTableSpace",
						//   name: "ItemMonitorDataBaseSQLServerDbTableSpace",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DbTableSpace.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "表空间大小",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DbBackup",
						//   name: "ItemMonitorDataBaseSQLServerDbBackup",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DbBackup.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "备份",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DbLogSpace",
						//   name: "ItemMonitorDataBaseSQLServerLogSpace",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DbLogSpace.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "日志空间使用",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },

						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/TimeSync",
						//   name: "ItemMonitorDataBaseSQLServerTimeSync",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/TimeSync.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "时间差",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DbAsmGroup",
						//   name: "ItemMonitorDataBaseSQLServerDbAsmGroup",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DbAsmGroup.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "ASM",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/DataGuard",
						//   name: "ItemMonitorDataBaseSQLServerDataGuard",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/DataGuard.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "DG同步状态",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/SQLServer/GoldenGate",
						//   name: "ItemMonitorDataBaseSQLServerGoldenGate",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbSQLServer/GoldenGate.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseSQLServer",
						//     title: "GGS同步状态",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
					],
				},
				{
					path: "/ItemMonitor/DataBase/Mysql",
					component: () =>
						import("@/components/page/ItemMonitor/components/Mysql.vue"),
					redirect: "/ItemMonitor/DataBase/Mysql/MainPage",
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
						title: "Mysql",
					},
					name: "ItemMonitorDataBaseMysql",
					children: [{
							path: "/ItemMonitor/DataBase/Mysql/MainPage",
							name: "ItemMonitorDataBaseMainPage",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/dataBase/dbMysql/MainPage.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorDataBaseMysql",
								title: "首页",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin", ,
									"bigadmin",
								],
							},
						},
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/librarySpace",
						//   name: "ItemMonitorDataBaseMysqllibrarySpace",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/librarySpace.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "线程信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },

						// {
						//   path: "/ItemMonitor/DataBase/Mysql/DBInfo",
						//   name: "ItemMonitorDataBaseMysqlInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "基础信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/WaitEvent",
						//   name: "ItemMonitorDataBaseMysqlWaitEvent",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbWaitEvent.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "等待事件",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/DbMemory",
						//   name: "ItemMonitorDataBaseMysqlDbMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbMemory.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "内存使用情况",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/Dbtime",
						//   name: "ItemMonitorDataBaseMysqlDbtime",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DBTime.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "DBTime",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/InvalidObject",
						//   name: "ItemMonitorDataBaseMysqlInvalidObject",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/DbInvalidObject.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "无效对象",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/CpuAndMemory",
						//   name: "ItemMonitorDataBaseMysqlCpuAndMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/components/CpuAndIoLoad.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "CpuAndIo",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },

						// {
						//   path: "/ItemMonitor/DataBase/Mysql/TableSpace",
						//   name: "ItemMonitorDataBaseMysqlTableSpace",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlTableSpace.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "表空间大小",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/StatusMonitoring",
						//   name: "ItemMonitorDataBaseMysqlStatusMonitoring",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/StatusMonitoring.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "实例命中率",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/honstInfo",
						//   name: "ItemMonitorDataBaseMysqlHostInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/components/ServerInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "主机信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/RedundancyIndex",
						//   name: "ItemMonitorDataBaseMysqlRedundancyIndex",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlRedundancyIndex.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "冗余索引",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/StorageEngine",
						//   name: "ItemMonitorDataBaseMysqlStorageEngine",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlStorageEngine.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "所有存储引擎",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/InnoDBStatus",
						//   name: "ItemMonitorDataBaseMysqlInnoDBStatus",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlInnoDBStatus.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "InnoDB存储引擎运行状态",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/sqlConnect",
						//   name: "ItemMonitorDataBaseMysqlConnect",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlConnect.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "IO详情",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/sqlHostCpuMemory",
						//   name: "ItemMonitorDataBaseMysqlsqlHostCpuMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlHostCpuMemory.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "CPU/内存",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/sqlFileSystem",
						//   name: "ItemMonitorDataBaseMysqlsqlFileSystem",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlFileSystem.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "系统文件",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/DataBase/Mysql/sqlWarning",
						//   name: "ItemMonitorDataBaseMysqlsqlWarning",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/dataBase/dbMysql/sqlWarning.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorDataBaseMysql",
						//     title: "mysql主机预警",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Buser",
						//       "BSuser",
						//       "BNuser",
						//       "bigUser",
						//       "Badmin",
						//       "BSadmin",
						//       "BNadmin", ,
						//       "bigadmin",
						//     ],
						//   },
						// },
					],
				},
				{
					path: "/ItemMonitor/Server",
					component: () =>
						import("@/components/page/ItemMonitor/components/Server.vue"),
					redirect: "/ItemMonitor/Server/MainPage",
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",

							"bigadmin",
						],
						title: "服务器",
					},
					name: "ItemMonitorServer",
					children: [
						// {
						//   path: "/ItemMonitor/Server/ServerInfo",
						//   name: "ItemMonitorServerInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/components/ServerInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorServer",
						//     title: "服务器信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Server/Connect",
						//   name: "ItemMonitorServerConnect",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/servers/Connect.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorServer",
						//     title: "可用性",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Server/HostCpuMemory",
						//   name: "ItemMonitorServerHostCpuMemory",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/servers/HostCpuMemory.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorServer",
						//     title: "CPU/内存",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },

						// {
						//   path: "/ItemMonitor/Server/SystemProcess",
						//   name: "ItemMonitorServerSystemProcess",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/servers/PIDTop.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorServer",
						//     title: "系统进程TOP10",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Server/FileSystem",
						//   name: "ItemMonitorServerFileSystem",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/servers/FileSystem.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorServer",
						//     title: "文件系统",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						{
							path: "/ItemMonitor/Server/MainPage",
							name: "ItemMonitorServerMainPage",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/servers/MainPage.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorServer",
								title: "主页",
								route: [
									"superAdmin",
									"admin",
									"Suser",
									"SNuser",
									"BSuser",
									"bigUser",
									"Sadmin",
									"SNadmin",
									"BSadmin",
									"bigadmin",
								],
							},
						},
					],
				},
				{
					path: "/ItemMonitor/Network",
					component: () =>
						import("@/components/page/ItemMonitor/components/Network.vue"),
					redirect: "/ItemMonitor/Network/MainPage",
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",

							"bigadmin",
						],
						title: "网络设备",
					},
					name: "ItemMonitorNetwork",
					children: [{
							path: "/ItemMonitor/Network/MainPage",
							name: "ItemMonitorMainPage",
							component: (resolve) =>
								require([
									"../components/page/ItemMonitor/Network/MainPage.vue",
								], resolve),
							meta: {
								menu: "ItemMonitorNetwork",
								title: "首页",
								route: [
									"superAdmin",
									"admin",
									"Suser",
									"SNuser",
									"BSuser",
									"bigUser",
									"Sadmin",
									"SNadmin",
									"BSadmin",
									"bigadmin",
								],
							},
						},
						// {
						//   path: "/ItemMonitor/Network/NetworkInfo",
						//   name: "ItemMonitorNetworkInfo",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/components/ServerInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "网络设备信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Connect",
						//   name: "ItemMonitorNetworkConnect",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/Connect.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "可用性",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Version",
						//   name: "ItemMonitorNetworkVersion",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/VersionInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "版本信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Power",
						//   name: "ItemMonitorNetworkPower",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/PowerInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "电源信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Route",
						//   name: "ItemMonitorNetworkRoute",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/RouteInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "路由信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Environment",
						//   name: "ItemMonitorNetworkEnvironment",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/HJJKInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "环境监控状态",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Config",
						//   name: "ItemMonitorNetworkConfig",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/ConfigInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "配置信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
						// {
						//   path: "/ItemMonitor/Network/Equipment",
						//   name: "ItemMonitorNetworkEquipment",
						//   component: (resolve) =>
						//     require([
						//       "../components/page/ItemMonitor/Network/EquipmentInfo.vue",
						//     ], resolve),
						//   meta: {
						//     menu: "ItemMonitorNetwork",
						//     title: "设备信息",
						//     route: [
						//       "superAdmin",
						//       "admin",
						//       "Suser",
						//       "SNuser",
						//       "BSuser",
						//       "bigUser",
						//       "Sadmin",
						//       "SNadmin",
						//       "BSadmin",
						//       "bigadmin",
						//     ],
						//   },
						// },
					],
				},
			],
		},

		/* 分项监控 end*/

		// 监控中心 数据库 服务器 网络  开始
		{
			path: "/dashBoardView",
			name: "dashBoardView",
			component: (resolve) =>
				require([
					"../components/page/dashboard/dashBoardView/Index.vue",
				], resolve),
			meta: {
				menu: "dashBoardView",
				title: "监控节点视图",
				route: [
					"superAdmin",
					"admin",
					"Buser",
					"Suser",
					"Nuser",
					"BSuser",
					"BNuser",
					"SNuser",
					"bigUser",
					"Badmin",
					"Sadmin",
					"Nadmin",
					"BSadmin",
					"BNadmin",
					"SNadmin",
					"bigadmin",
				],
			},
			children: [{
					path: "/dashBoardView/DataBase/Oracle",
					name: "dashBoardOracle",
					component: (resolve) =>
						require([
							"../components/page/dashboard/dataBase/Oracle/DashBoardPage.vue",
						], resolve),
					meta: {
						menu: "dashBoardOracle",
						title: "Oracle",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoardView/DataBase/Mysql",
					name: "dashBoardMysql",
					component: (resolve) =>
						require([
							"../components/page/dashboard/dataBase/mySql/ServerPage.vue",
						], resolve),
					meta: {
						menu: "dashBoardMysql",
						title: "Mysql",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin", ,
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoardView/DataBase/Sqlserver",
					name: "dashBoardSqlserver",
					component: (resolve) =>
						require([
							"../components/page/dashboard/dataBase/SqlServer/ServerPage.vue",
						], resolve),
					meta: {
						menu: "dashBoardSqlserver",
						title: "SqlServer",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoardView/Server",
					name: "dashBoardServer",
					component: (resolve) =>
						require([
							"../components/page/dashboard/server/ServerPage.vue",
						], resolve),
					meta: {
						menu: "dashBoardServer",
						title: "服务器页面",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoardView/Internet",
					name: "dashBoardInternet",
					component: (resolve) =>
						require(["../components/page/dashboard/net/NetPage.vue"], resolve),
					meta: {
						menu: "dashBoardInternet",
						title: "网络设备页面",
						route: [
							"superAdmin",
							"admin",
							"Nuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Nadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
			],
		},

		// 监控中心 数据库 服务器 网络  结束

		{
			path: "*",
			redirect: "/404",
		},

		//智能报告 锚点处理
		{
			path: "/server-*",
			redirect: "/report/server2",
		},
		{
			path: "/one-*",
			redirect: "/report/dataBase",
		},
		{
			path: "/two-*",
			redirect: "/report/dataBase",
		},
		{
			path: "/three-*",
			redirect: "/report/dataBase",
		},
		{
			path: "/four-*",
			redirect: "/report/dataBase",
		},

		{
			path: "/TEDB-*",
			redirect: "/examine/TodayExamineDataBase",
		},

		//     {
		// path: '/',
		// name: 'home',
		// component: resolve => require(['../components/common/Home.vue'], resolve),
		// meta: { title: '自述文件' },
		// children: ''}
		//         {
		//         path: '/',
		//         name: 'home',
		//         component: resolve => require(['../components/common/Home.vue'], resolve),
		//         meta: { title: '自述文件' },
		//         children: [
		// /* 监控中心 */
		// {
		//     path: '/dashBoard/MainPage',
		//     name: 'dashBoardMainPage',
		//     component: resolve => require(['../components/page/dashboard/mainPage/Index.vue'], resolve),
		//     meta: { menu: 'dashBoardMainPage', title: '监控总页', route: ['superAdmin','admin', 'Buser','Suser','Nuser','BSuser','BNuser','SNuser','bigUser', 'Badmin','Sadmin','Nadmin','BSadmin','BNadmin','SNadmin','bigadmin'] }

		//     }]},

		{
			path: "/",
			name: "home",
			component: (resolve) =>
				require(["../components/common/Home.vue"], resolve),
			meta: {
				title: "系统",
			},
			children: [
				/* 监控中心 */
				{
					path: "/dashBoard/MainPage",
					name: "dashBoardMainPage",
					component: (resolve) =>
						require([
							"../components/page/dashboard/mainPage/Index.vue",
						], resolve),
					meta: {
						menu: "dashBoardMainPage",
						title: "监控总页",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/sessionData/SessionInformation",
					name: "SessionInformation",
					component: (resolve) =>
						require([
							"../components/page/SessionData/SessionInformation.vue",
						], resolve),
					meta: {
						menu: "SessionInformation",
						title: "会话信息",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoard/RealTimeStatus",
					name: "dashBoardRealTimeStatus",
					component: (resolve) =>
						require([
							"../components/page/dashboard/realTimeStatus/Index.vue",
						], resolve),
					meta: {
						menu: "dashBoardRealTimeStatus",
						title: "实时状态",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoard/RealTimeStatus2",
					name: "dashBoardRealTimeStatus2",
					component: (resolve) =>
						require([
							"../components/page/dashboard/realTimeStatus/IndexTwo.vue",
						], resolve),
					meta: {
						menu: "dashBoardRealTimeStatus2",
						title: "实时状态2",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoard/TopologyView",
					name: "dashBoardRealTimeStatus3",
					component: (resolve) =>
						require([
							"../components/page/dashboard/realTimeStatus/IndexThree.vue",
						], resolve),
					meta: {
						menu: "dashBoardRealTimeStatus3",
						title: "实时状态3",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/dashBoard/RealTimeStatus4",
					name: "dashBoardRealTimeStatus4",
					component: (resolve) =>
						require([
							"../components/page/dashboard/realTimeStatus/IndexFour.vue",
						], resolve),
					meta: {
						menu: "dashBoardRealTimeStatus4",
						title: "实时状态4",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				/* 监控详情 - 数据库 - Oracle */
				{
					path: "/monitorInfo/DataBase/Oracle/Connect",
					name: "monitorInfoDataBaseOracleConnect",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DbConnect.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "可用性",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/TableSpace",
					name: "monitorInfoDataBaseOracleTableSpace",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DbTableSpace.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "表空间",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/Backup",
					name: "monitorInfoDataBaseOracleBackup",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DbBackup.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "备份",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/TimeSync",
					name: "monitorInfoDataBaseOracleTimeSync",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/TimeSync.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "时间差",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/AsmGroup",
					name: "monitorInfoDataBaseOracleAsmGroup",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DbAsmGroup.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "ASM",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/DataGuard",
					name: "monitorInfoDataBaseOracleDataGuard",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DataGuard.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "DG同步状态",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/GoldenGate",
					name: "monitorInfoDataBaseOracleGoldenGate",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/GoldenGate.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "GGS同步状态",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/DataDBTime",
					name: "monitorInfoDataBaseOracleDataDBTime",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/DataDBTime.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "DBTIME",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/sqlLong",
					name: "monitorInfoDataBaseOraclesqlLong",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/sqlLong.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "SQL",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Oracle/userPassword",
					name: "monitorInfoDataBaseOracleuserPassword",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbOracle/userPassword.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseOracle",
						title: "SQL",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				/* 监控详情 - 数据库 - SQLServer */
				// {
				//     path: '/monitorInfo/DataBase/SQLServer/DbSQLServer',
				//     name: 'monitorInfoDataBaseSQLServerDbSQLServer',
				//     component: resolve => require(['../components/page/detailsPage/dataBase/dbSQLServer/DbSQLServer.vue'], resolve),
				//     meta: { menu: 'monitorInfoDataBaseSQLServer', title: 'SQLServer', route: ['admin', 'user'] }
				// },
				{
					path: "/monitorInfo/DataBase/SQLServer/IODetail",
					name: "monitorInfoDataBaseSQLServerConnect",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DbConnect.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "IO详情",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/DbTableSpace",
					name: "monitorInfoDataBaseSQLServerDbTableSpace",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DbTableSpace.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "表空间大小",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/DbBackup",
					name: "monitorInfoDataBaseSQLServerDbBackup",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DbBackup.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "日志空间使用",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/DbLogSpace",
					name: "monitorInfoDataBaseSQLServerLogSpace",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DbLogSpace.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "日志空间使用",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/TimeSync",
					name: "monitorInfoDataBaseSQLServerTimeSync",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/TimeSync.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "时间差",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/DbAsmGroup",
					name: "monitorInfoDataBaseSQLServerDbAsmGroup",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DbAsmGroup.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "ASM",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/DataGuard",
					name: "monitorInfoDataBaseSQLServerDataGuard",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/DataGuard.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "DG同步状态",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/SQLServer/GoldenGate",
					name: "monitorInfoDataBaseSQLServerGoldenGate",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbSQLServer/GoldenGate.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseSQLServer",
						title: "GGS同步状态",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				/* 监控详情 - 数据库 - Mysql */
				{
					path: "/monitorInfo/DataBase/Mysql/librarySpace",
					name: "monitorInfoDataBaseMysqllibrarySpace",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/librarySpace.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "线程信息",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/TableSpace",
					name: "monitorInfoDataBaseMysqlTableSpace",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/sqlTableSpace.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "表空间大小",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/StatusMonitoring",
					name: "monitorInfoDataBaseMysqlStatusMonitoring",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/StatusMonitoring.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "实例命中率",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/sqlConnect",
					name: "monitorInfoDataBaseMysqlsqlConnect",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/sqlConnect.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "IO详情",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/sqlHostCpuMemory",
					name: "monitorInfoDataBaseMysqlsqlHostCpuMemory",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/sqlHostCpuMemory.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "CPU/内存",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/sqlFileSystem",
					name: "monitorInfoDataBaseMysqlsqlFileSystem",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/sqlFileSystem.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "系统文件",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/DataBase/Mysql/sqlWarning",
					name: "monitorInfoDataBaseMysqlsqlWarning",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/dataBase/dbMysql/sqlWarning.vue",
						], resolve),
					meta: {
						menu: "monitorInfoDataBaseMysql",
						title: "mysql主机预警",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				/* 监控详情 - 服务器 */
				{
					path: "/monitorInfo/Server/Connect",
					name: "monitorInfoServerConnect",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/servers/Connect.vue",
						], resolve),
					meta: {
						menu: "monitorInfoServer",
						title: "可用性",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/Server/HostCpuMemory",
					name: "monitorInfoServerHostCpuMemory",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/servers/HostCpuMemory.vue",
						], resolve),
					meta: {
						menu: "monitorInfoServer",
						title: "CPU/内存",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/Server/FileSystem",
					name: "monitorInfoServerFileSystem",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/servers/FileSystem.vue",
						], resolve),
					meta: {
						menu: "monitorInfoServer",
						title: "文件系统",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/monitorInfo/Server/topoalert",
					name: "monitorInfoServertopoalert",
					component: (resolve) =>
						require([
							"../components/page/detailsPage/servers/topoalert.vue",
						], resolve),
					meta: {
						menu: "monitorInfoServer",
						title: "网络设备丢包率",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				/* 数据统计 - 数据库 - Oracle */
				{
					path: "/historyData/DataBase/Oracle",
					name: "historyDataDBOracle",
					component: (resolve) =>
						require([
							"../components/page/historyData/dataBase/dbOracle/Index.vue",
						], resolve),
					meta: {
						menu: "historyDataDBOracle",
						title: "Oracle",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/historyData/DataBase/Mysql",
					name: "historyDataDBMysql",
					component: (resolve) =>
						require([
							"../components/page/historyData/dataBase/dbMysql/Index.vue",
						], resolve),
					meta: {
						menu: "historyDataDBMysql",
						title: "Mysql",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/historyData/DataBase/SQLServer",
					name: "historyDataDBSQLServer",
					component: (resolve) =>
						require([
							"../components/page/historyData/dataBase/dbSqlServer/Index.vue",
						], resolve),
					meta: {
						menu: "historyDataDBSQLServer",
						title: "SQLServer",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				// {
				//   path: "/historyData/DataBase/Oracle/TableSpace",
				//   name: "historyDataDBOracleTableSpace",
				//   component: (resolve) =>
				//     require([
				//       "../components/page/historyData/dataBase/dbOracle/DbTableSpace.vue",
				//     ], resolve),
				//   meta: {
				//     menu: "historyDataDBOracle",
				//     title: "表空间",
				//   },
				// },
				// {
				//   path: "/historyData/DataBase/Oracle/AsmGroup",
				//   name: "historyDataDBOracleAsmGroup",
				//   component: (resolve) =>
				//     require([
				//       "../components/page/historyData/dataBase/dbOracle/DbAsmGroup.vue",
				//     ], resolve),
				//   meta: {
				//     menu: "historyDataDBOracle",
				//     title: "ASM",
				//   },
				// },
				/* 数据统计 - 服务器 */
				{
					path: "/historyData/Server",
					name: "historyDataServer",
					component: (resolve) =>
						require([
							"../components/page/historyData/servers/Index.vue",
						], resolve),
					meta: {
						menu: "historyDataServer",
						title: "服务器",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/historyData/ServerTotal",
					name: "historyDataServerTotal",
					component: (resolve) =>
						require([
							"../components/page/historyData/serverTotal/ServerTotal.vue",
						], resolve),
					meta: {
						menu: "historyDataServerTotal",
						title: "服务器统计",
						route: ["superAdmin", "admin", "user", "Suser", "SNuser", "BSuser"],
					},
				},
				{
					path: "/examine/TodayExamineDataBase",
					name: "todayExamineDatabase",
					component: (resolve) =>
						require(["../components/page/examine/TodayExamineDB"], resolve),
					meta: {
						menu: "TodayExamine",
						title: "一键巡检/数据库",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/examine/TodayExamineServer",
					name: "todayExamineServer",
					component: (resolve) =>
						require(["../components/page/examine/TodayExamineServer"], resolve),
					meta: {
						menu: "TodayExamine",
						title: "一键巡检/服务器&网络设备",
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				// {
				//     path: '/historyData/Server/Cpu',
				//     name: 'historyDataServerHostCpu',
				//     component: resolve => require(['../components/page/historyData/servers/HostCpu.vue'], resolve),
				//     meta: { menu: 'historyDataServer', title: 'CPU' }
				// },
				// {
				//     path: '/historyData/Server/Memory',
				//     name: 'historyDataServerHostMemory',
				//     component: resolve => require(['../components/page/historyData/servers/HostMemory.vue'], resolve),
				//     meta: { menu: 'historyDataServer', title: '内存' }
				// },
				// {
				//     path: '/historyData/Server/FileSystem',
				//     name: 'historyDataServerFileSystem',
				//     component: resolve => require(['../components/page/historyData/servers/FileSystem.vue'], resolve),
				//     meta: { menu: 'historyDataServer', title: '文件系统' }
				// },
				/* 智能报告 */
				{
					path: "/report",
					component: () => import("@/components/page/report/Index.vue"),
					// redirect: '/report/dataBase',
					meta: {
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
						title: "智能报告",
					},
					children: [{
							path: "/report/dataBase",
							name: "reportDataBase",
							component: () =>
								import("@/components/page/report/dataBaseReport/dataBase.vue"),
							meta: {
								menu: "reportDataBase",
								title: "数据库",
								route: [
									"superAdmin",
									"admin",
									"Buser",
									"BSuser",
									"BNuser",
									"bigUser",
									"Badmin",
									"BSadmin",
									"BNadmin",
									"bigadmin",
								],
							},
						},
						{
							path: "/report/server",
							name: "reportServer",
							component: () =>
								import("@/components/page/report/serverReport/server2.vue"),
							meta: {
								menu: "reportServer",
								title: "服务器",
								route: [
									"superAdmin",
									"admin",
									"Suser",
									"SNuser",
									"BSuser",
									"bigUser",
									"Sadmin",
									"SNadmin",
									"BSadmin",
									"bigadmin",
								],
							},
						},
						{
							path: "/report/internet",
							name: "reportInternet",
							component: () =>
								import("@/components/page/report/internetReport/internet.vue"),
							meta: {
								menu: "reportInternet",
								title: "网络设备",
								route: [
									"superAdmin",
									"admin",
									"Nuser",
									"BNuser",
									"SNuser",
									"bigUser",
									"Nadmin",
									"BNadmin",
									"SNadmin",
									"bigadmin",
								],
							},
						},
					],
				},

				/* 告警面板 */
				{
					path: "/warningPanel",
					name: "warningPanel",
					component: (resolve) =>
						require(["../components/page/warning/WarningPanel.vue"], resolve),
					meta: {
						menu: "warningPanel",
						title: "实时告警",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				{
					path: "/historywarningPanel",
					name: "historywarningPanel",
					component: (resolve) =>
						require([
							"../components/page/warning/HistoryWarningPanel.vue",
						], resolve),
					meta: {
						menu: "historywarningPanel",
						title: "历史告警",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/CountwarningPanel",
					name: "CountwarningPanel",
					component: (resolve) =>
						require([
							"../components/page/warning/WarningPanelSSGJ.vue",
						], resolve),
					meta: {
						menu: "CountwarningPanel",
						title: "大告警",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				{
					path: "/warningPanelDB",
					name: "warningPanelDB",
					component: (resolve) =>
						require(["../components/page/warning/WarningPanelDB.vue"], resolve),
					meta: {
						menu: "warningPanelDB",
						title: "数据库实时告警",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/warningPanelOSNetWork",
					name: "warningPanelOSNetWork",
					component: (resolve) =>
						require([
							"../components/page/warning/WarningPanelOSAndNetwork.vue",
						], resolve),
					meta: {
						menu: "warningPanelOSNetWork",
						title: "服务器/网络设备实时告警",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Nuser",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Nadmin",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},

				{
					path: "/warningPanelBell",
					name: "warningPanelBell",
					component: (resolve) =>
						require([
							"../components/page/warning/WarningPanelBell.vue",
						], resolve),
					meta: {
						menu: "warningPanelBell",
						title: "铃铛告警",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/warningPanelFault",
					name: "warningPanelFault",
					component: (resolve) =>
						require([
							"../components/page/warning/WarningPanelFault.vue",
						], resolve),
					meta: {
						menu: "warningPanelFault",
						title: "故障统计告警",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				/* 日志中心 */
				{
					path: "/Log",
					name: "log",
					component: (resolve) =>
						require(["../components/page/logHub/log.vue"], resolve),
					meta: {
						menu: "log",
						title: "日志中心",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				{
					path: "/Alarm.jsp",
					name: "Alarm",
					component: (resolve) =>
						require(["../components/page/warning/alarm.vue"], resolve),
					meta: {
						menu: "Alarm",
						title: "告警推送",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				/* 平台管理 */
				{
					path: "/management/Node/DB",
					name: "managementNodeDB",
					component: (resolve) =>
						require(["../components/page/management/NodeDB.vue"], resolve),
					meta: {
						menu: "managementNodeDB",
						title: "数据库节点管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"BSuser",
							"BNuser",
							"bigUser",
							"Badmin",
							"BSadmin",
							"BNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/Node/OS",
					name: "managementNodeOS",
					component: (resolve) =>
						require(["../components/page/management/NodeOS.vue"], resolve),
					meta: {
						menu: "managementNodeOS",
						title: "服务器节点管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Suser",
							"SNuser",
							"BSuser",
							"bigUser",
							"Sadmin",
							"SNadmin",
							"BSadmin",
							"bigadmin",
						],
					},
				},
				// managementNodeNetwork
				{
					path: "/management/Node/Network",
					name: "managementNodeNetwork",
					component: (resolve) =>
						require(["../components/page/management/NodeNetwork.vue"], resolve),
					meta: {
						menu: "managementNodeNetwork",
						title: " 网络节点管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Nuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Nadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				//managementNodeWebcam
				{
					path: "/management/Node/Webcam",
					name: "managementNodeWebcam",
					component: (resolve) =>
						require(["../components/page/management/NodeWebcam.vue"], resolve),
					meta: {
						menu: "managementNodeWebcam",
						title: "监控设备节点管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Nuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Nadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/AssetManagement",
					name: "AssetManagement",
					component: (resolve) =>
						require(["../components/page/management/AssetManagement.vue"], resolve),
					meta: {
						menu: "AssetManagement",
						title: "资产详情",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/AssetCharts",
					name: "AssetCharts",
					component: (resolve) =>
						require(["../components/page/management/AssetCharts.vue"], resolve),
					meta: {
						menu: "AssetCharts",
						title: "资产图解",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/NodePort.jsp",
					name: "managementNodePort",
					component: (resolve) =>
						require([
							"../components/page/management/portManagement/PortIndex.vue",
						], resolve),
					meta: {
						menu: "managementNodePort",
						title: "端口管理",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},

				{
					path: "/management/Business.jsp",
					name: "managementBusiness",
					component: (resolve) =>
						require(["../components/page/management/Business.vue"], resolve),
					meta: {
						menu: "managementBusiness",
						title: "业务系统",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/Threshold.jsp",
					name: "managementThreshold",
					component: (resolve) =>
						require(["../components/page/management/Threshold.vue"], resolve),
					meta: {
						menu: "managementThreshold",
						title: "阈值管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/Account.jsp",
					name: "managementAccount",
					component: (resolve) =>
						require(["../components/page/management/Account.vue"], resolve),
					meta: {
						menu: "managementAccount",
						title: "账号管理",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/getPdf",
					name: "getPdf",
					component: (resolve) =>
						require(["../components/page/management/getPdf.vue"], resolve),
					meta: {
						menu: "getPdf",
						title: "导出pdf",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/OracleLoginLog",
					name: "OracleLoginLog",
					component: (resolve) =>
						require(["../components/page/management/OracleLoginLog.vue"], resolve),
					meta: {
						menu: "OracleLoginLog",
						title: "Oracle登录日志",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/NetworkLoginLog",
					name: "NetworkLoginLog",
					component: (resolve) =>
						require(["../components/page/management/NetworkLoginLog.vue"], resolve),
					meta: {
						menu: "NetworkLoginLog",
						title: "网络设备登录日志",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/ActionLog.jsp",
					name: "managementActionLog",
					component: (resolve) =>
						require(["../components/page/management/ActionLog.vue"], resolve),
					meta: {
						menu: "managementActionLog",
						title: "操作日志",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/management/statusLog.jsp",
					name: "statusLog",
					component: (resolve) =>
						require(["../components/page/statusLog/index.vue"], resolve),
					meta: {
						menu: "statusLog",
						title: "状态日志",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/NodeUsability",
					name: "NodeUsability",
					component: (resolve) =>
						require([
							"../components/page/NodeUsability/Usability.vue",
						], resolve),
					meta: {
						menu: "NodeUsability",
						title: "节点可用性",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				// 服务器负载统计 节点使用详情
				{
					path: "/ServerUsage",
					name: "ServerUsage",
					component: (resolve) =>
						require([
							"../components/page/historyData/serverTotal/ServerUsage.vue",
						], resolve),
					meta: {
						menu: "ServerUsage",
						title: "节点使用情况",
						permission: true,
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				/* 404, 403 */
				{
					path: "/404",
					name: "404",
					component: (resolve) =>
						require(["../components/page/404.vue"], resolve),
					meta: {
						menu: "404",
						title: "404",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/403",
					name: "403",
					component: (resolve) =>
						require(["../components/page/403.vue"], resolve),
					meta: {
						menu: "403",
						title: "403",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				{
					path: "/401",
					name: "401",
					component: (resolve) =>
						require(["../components/page/401.vue"], resolve),
					meta: {
						menu: "401",
						title: "401",
						route: [
							"superAdmin",
							"admin",
							"Buser",
							"Suser",
							"Nuser",
							"BSuser",
							"BNuser",
							"SNuser",
							"bigUser",
							"Badmin",
							"Sadmin",
							"Nadmin",
							"BSadmin",
							"BNadmin",
							"SNadmin",
							"bigadmin",
						],
					},
				},
				// {
				//   path: "/pdfDownload",
				//   component: () => import("@/components/common/pdfDownload.vue"),
				//   meta: {
				//     menu: "pdfDownload",
				//     title: "下载pdf",
				//     route: [
				//       "superAdmin",
				//       "admin",
				//       "Buser",
				//       "Suser",
				//       "Nuser",
				//       "BSuser",
				//       "BNuser",
				//       "SNuser",
				//       "bigUser",
				//       "Badmin",
				//       "Sadmin",
				//       "Nadmin",
				//       "BSadmin",
				//       "BNadmin",
				//       "SNadmin",
				//       "bigadmin",
				//     ],
				//   },
				// },
				// {
				//   path: "/LargeScreen",
				//   component: () => import("@/components/common/LargeScreen.vue"),
				//   meta: {
				//     menu: "LargeScreen",
				//     title: "首页大屏",
				//     route: [
				//       "superAdmin",
				//       "admin",
				//       "Buser",
				//       "Suser",
				//       "Nuser",
				//       "BSuser",
				//       "BNuser",
				//       "SNuser",
				//       "bigUser",
				//       "Badmin",
				//       "Sadmin",
				//       "Nadmin",
				//       "BSadmin",
				//       "BNadmin",
				//       "SNadmin",
				//       "bigadmin",
				//     ],
				//   },
				// },
			],
		},
	],
});

router.beforeEach(async (to, from, next) => {
	let ISprivileges = true;

	let isTime = Number(localStorage.getItem("userTime")) < 0;

	store._mutations["time/setExcessTime"][0]();

	let userInfo = "";

	let userIsErr = "";

	let sessionTime =
		moment(new Date(localStorage.getItem("ms_lastTime")) || new Date()).format(
			"x"
		) > moment().clone().subtract(3, "seconds").format("x");
	const role = localStorage.getItem("ms_type");
	// 处理因刷新 导致indexdb 无法使用的问题
	if (from.name == null && to.name == "Login" && role) {
		clearCache();
		next({
			name: "Login",
		});
	}
	if (role) {
		await getUserData("userBase", "infoBase", 0).then((res) => {
			
			userInfo = res;
		});
		await Login({
			username: userInfo.ms_username,
			password: userInfo.ms_password,
		}).then((res) => {
		
			userIsErr = res;
		});

		let filterRouter = (UserType, dynamicRoutes) => {
			return dynamicRoutes.filter((_) => {
				if (_.children) {
					_.children = _.children.filter((item) => {
						if (item.children) {
							item.children = item.children.filter((itemChlid) => {
								return itemChlid.meta.route.includes(UserType);
							});
							return item;
						}
						return item.meta.route.includes(UserType);
					});

					return _;
				}

				return _.meta.route.includes(UserType);
			});
		};

		await getUserData("userBase", "infoBase", 0).then(async (UserResult) => {
			// console.log("用户结果",UserResult)
			let UserRoute = filterRouter(UserResult.userType, dynamic_routes);
			let info = UserRoute.filter((element) => {
				if (element.children) {
					let status = element.children.filter((item) => {
						if (item.children) {
							let Status = item.children.filter((ItemChild) => {
								return ItemChild.name == to.name;
							});
							return Status.length == "0" ? "" : Status;
						}
						return item.name == to.name;
					});

					return status.length == "0" ? "" : status;
				}

				return element.name == to.name;
			});
			ISprivileges = info.length;
		});
		// if (to.path == "/login") {
		if (to.name == "Login") {
			Message({
				showClose: true,
				message: "你已登陆,不允许访问登录页,请注销登录",
				type: "warning",
			});
			next("/");
		}
	}
	if (!role && to.name !== "Login") {
		clearCache();
		next({
			name: "Login",
		});
	} else if (to.name !== "Login" && isTime) {
		Message({
			message: "试用期结束,请联系超管",
			type: "warning",
		});
		clearCache();
		next({
			name: "Login",
		});
	} else if (
		(to.name !== "Login" && userIsErr == "Wrong account or password") ||
		userIsErr == "not enough time left"
	) {
		clearCache();

		Message({
			message: "账号异常,请重新登录",
			type: "warning",
		});
		next({
			name: "Login",
		});
	} else if (!ISprivileges && to.name !== "Login") {
		next("/401");
	} else if (to.meta.permission) {
		userInfo.ms_type === "superAdmin" || "admin" ? next() : next("/403");
	} else {
		if (navigator.userAgent.indexOf("MSIE") > -1 && to.path === "/editor") {
			Vue.prototype.$alert(
				"vue-quill-editor组件不兼容IE10及以下浏览器，请使用更高版本的浏览器查看",
				"浏览器不兼容通知", {
					confirmButtonText: "确定",
				}
			);
		} else {
			next();
		}
	}
});

export default router;
//长时间未操作会退出到登录页面清除缓存，2024.4.17注释,4523行else if前加入
	// else if (role && !sessionTime && to.name !== "Login") {
	// 	clearCache();
	// 	Message({
	// 		message: "会话过期,请重新登录",
	// 		type: "warning",
	// 	});
	// 	next({
	// 		name: "Login",
	// 	});
	// 	window.location.reload();
	// } 